const AccessTokenKey = 'ACCESS_TOKEN'
const RefreshTokenKey = 'REFRESH_TOKEN'
// Token
export function getAccessToken() {
    return localStorage.getItem(AccessTokenKey)
}
  
export function getRefreshToken() {
    return localStorage.getItem(RefreshTokenKey)
}
  
export function setToken(data) {
    localStorage.setItem(AccessTokenKey, data.access_token)
    localStorage.setItem(RefreshTokenKey, data.refresh_token)
}
  
export function removeToken() {
    localStorage.removeItem(AccessTokenKey)
    localStorage.removeItem(RefreshTokenKey)
}